﻿#ifndef LINE_H
#define LINE_H
#include <osg/Geometry>
#include <osg/Texture2D>
#include <osg/Group>
class CLine : public osg::Group
{
public:
	CLine();

	~CLine();

	void setPointSize(int nSize);

	void setLineWidth(int nWidth);

	void setColor(const osg::Vec4& vecColor);

protected:
	osg::ref_ptr<osg::DrawArrays> m_rpDrawArrays;
	osg::ref_ptr<osg::Vec3Array>  m_rpVertexArray;
	osg::ref_ptr<osg::Geometry>   m_rpGeo;
};
#endif LINE_H